/*    */ package com.zimbra.cs.mailbox;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.mailbox.acl.EffectiveACLCache;
/*    */ import com.zimbra.cs.mailbox.calendar.cache.CalendarCacheManager;
/*    */ import com.zimbra.cs.memcached.MemcachedConnector;
/*    */ import com.zimbra.cs.session.PendingModifications;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MemcachedCacheManager
/*    */   extends MailboxListener
/*    */ {
/*    */   public static void purgeMailbox(Mailbox mbox)
/*    */     throws ServiceException
/*    */   {
/* 29 */     CalendarCacheManager.getInstance().purgeMailbox(mbox);
/* 30 */     EffectiveACLCache.getInstance().purgeMailbox(mbox);
/* 31 */     FoldersTagsCache.getInstance().purgeMailbox(mbox);
/*    */   }
/*    */   
/*    */   public void notify(MailboxListener.ChangeNotification notification)
/*    */   {
/* 36 */     PendingModifications mods = notification.mods;
/* 37 */     int changeId = notification.lastChangeId;
/*    */     
/*    */ 
/* 40 */     CalendarCacheManager.getInstance().notifyCommittedChanges(mods, changeId);
/* 41 */     if (MemcachedConnector.isConnected()) {
/* 42 */       EffectiveACLCache.getInstance().notifyCommittedChanges(mods, changeId);
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailbox/MemcachedCacheManager.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */